import request from '@/utils/request'

// 查询黑名单列表
export function listPlatUserBlackList(query) {
  return request({
    url: '/platuser/platUserBlackList/list',
    method: 'get',
    params: query
  })
}

// 新增黑名单
export function addPlatUserBlackList(data) {
  return request({
    url: '/platuser/platuserinfo/addUserToBlackList',
    method: 'post',
    data: data
  })
}

// 删除黑名单
export function delPlatUserBlackList(id) {
  return request({
    url: '/platuser/platUserBlackList/' + id,
    method: 'delete'
  })
}

// 根据手机号查询用户列表
export const getUserListByPhone = (phone) => {
  return request({
    url: '/platuser/platuserinfo/queryUserByParam',
    method: 'post',
    data: {
      likeSearch: phone
    }
  })
}
